#include "TV.h"
#include <iostream>
using namespace std;
void Remote::turn_on_TV()
{
    tv->state = ON;
}
void Remote::turn_off_TV()
{
    tv->state = OFF;
}
void Remote::increase_vol()
{
    tv->vol += 1;
}
void Remote::vol_down()
{
    tv->vol -= 1;
}
void Remote::add_channel()
{
    tv->channel += 1;
}
void Remote::sub_channel()
{
    tv->channel -= 1;
}
void Remote::show_TV()
{
    cout << tv->state << endl;
    cout << tv->vol << endl;
    cout << tv->channel << endl;
}
int main()
{
    TV tv;
    Remote re(&tv);
    re.turn_off_TV();
    re.increase_vol();
    re.add_channel();
    re.show_TV();
}